<template>
    <view>
        <status-bar title=" " hideBg="1" :back="back"></status-bar>
        <view class="content">
            <view class="row j-centert black bold size30 m-bot30">{{ pageData.website_article_title }}</view>
            <u-parse :content="pageData.website_article_content" :domain="imgUrl"></u-parse>
        </view>
    </view>
</template>

<script>
    export default {
        data() {
            return {
                website_article_id: '',
                pageData: ''
            };
        },
        onLoad(opt) {
            if (opt.id) this.website_article_id = opt.id;
            this.articleInfo();
        },
        methods: {
            articleInfo() {
                this.$http
                    .post({
                        url: '/zzjApp/articleInfo',
                        data: {
                            website_article_id: this.website_article_id
                        }
                    })
                    .then((res) => {
                        if (res.errcode != '00000') return this.$Toast(res.msg, 2);
                        this.pageData = res.data;
                    });
            }
        }
    };
</script>

<style lang="scss" scoped>
    .content {
        width: 690rpx;
        margin: 0 auto;
        padding: 20rpx 0;
    }
</style>
